import http from './http'
// 登录功能接口
// const url  = 'https://nfzjszlb.jst.zj.gov.cn/tyzcpt/' //本地接口调用
const url  = window.g.BaseUrlMap //打包上传需要放开代码
export function getDataByChartSql (data) {
    return http.postJson(url + 'api/charts/gsaDataChart/getDataByChartSql', data)
}
export function houseSearch (data) {
    return http.get(url + `/api/farmerHouse/excelData/houseSearch?${data}`);
}
export function houseList (data) {
    return http.postJson(url + `/api/farmerHouse/tfwZjf/list`, data);
}

//````````````````安全管理```````````````````
export function listForTree (code) {
    return http.get(url + `/api/rescatalog/gsaCodeCity/listForTree/${code}`);
}
//````````````````房屋检查```````````````````
export function taskList (data) {
    return http.postJson(url + `/api/farmerHouse/houseCheckFwCheckCountry/taskList`, data);
}
export function taskListList (data) {
    return http.postJson(url + `/api/farmerHouse/houseCheckFwCheckCountry/list`, data);
}